package com.chinatgl.latte.ec;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;


import com.chinatgl.latte.delegates.bottom.BottomItemDelegate;

import me.yokeyword.fragmentation.anim.DefaultHorizontalAnimator;
import me.yokeyword.fragmentation.anim.FragmentAnimator;


public class DiscoverDelegate extends BottomItemDelegate {

    @Override
    public CharSequence getTitle() {
        return "测试";
    }

    @Override
    public Object getContentView() {
        return R.layout.delegate_sign_in;
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, @NonNull View rootView) {
    }

    @Override
    public void onLazyInitView(@Nullable Bundle savedInstanceState) {
        super.onLazyInitView(savedInstanceState);
//        final WebDelegateImpl delegate = WebDelegateImpl.create("index.html");
//        delegate.setTopDelegate(this.getParentDelegate());
//        getSupportDelegate().loadRootFragment(R.id.web_discovery_container, delegate);
    }

    @Override
    public FragmentAnimator onCreateFragmentAnimator() {
        return new DefaultHorizontalAnimator();
    }
}
